Skip to content

Feat/m4 registration form#6

Merged
iamodh merged 7 commits intomainfrom
feat/m4-registration-form
Feb 19, 2026
Merged

Feat/m4 registration form#6
iamodh merged 7 commits intomainfrom
feat/m4-registration-form

Conversation

@iamodh
Copy link
Owner

@iamodh iamodh commented Feb 19, 2026

No description provided.

iamodh and others added 7 commits February 19, 2026 11:52
- Use declarative `normalizes` API instead of before_validation callbacks
- Name: remove all whitespace ("홍 길 동" → "홍길동")
- Phone: remove all non-digit characters ("010-1234-5678" → "01012345678")
- Update TECHSPEC §7.1 to reflect normalizes approach

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add Course#remaining_slots to calculate available capacity
- Add home page showing available courses (capacity > 0) with remaining slots
- Add registration form with required fields (name, phone, birth_date, gender, address)
- Add routes for home and nested registrations under courses
- Add testing guideline: update old tests when model methods replace inline logic

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…vation

Add create action to RegistrationsController with validation error
handling. Auto-set race_id from course via before_validation callback.
Display validation errors at top of form and preserve user input on
resubmission.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add maximum length constraint for registration name field as specified
in TECHSPEC. Validates after normalization (space removal).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add HTML maxlength=10 to name text field for client-side UX guard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add maximum length constraint for registration address field with
server-side validation and HTML maxlength attribute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add maximum length constraint for phone_number field. Server validates
11 digits (post-normalization), HTML allows 13 chars to accommodate
dashes in user input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iamodh iamodh merged commit 0d38e3f into main Feb 19, 2026
5 checks passed
@iamodh iamodh deleted the feat/m4-registration-form branch February 19, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant